﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 二维数组定义与初始化
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //0 1 2
            //1 2 3
            //4 5 6
            int[,] arr = { {1, 2, 3},{4, 5, 6} };

            int[,] arr2 = new int[2, 3] { { 1, 2, 3 }, { 4, 5, 6 } };

            Console.WriteLine(arr[0,1]);

            Console.Read();
        }
    }
}
